﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Inventory.Master" AutoEventWireup="true"
    CodeBehind="Products.aspx.cs" Inherits="InventryPro.Products.Products" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="border: solid 1px black; width: 100%;">
        <table style="border: solid 1px black; width: 100%;">
            <tr>
                <td>
                    <asp:Label ID="lblProductName" runat="server" Text="ProductName"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtProductName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblCategoryID" runat="server" Text="Category ID"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtCategoryID" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblQuantityPerUnit" runat="server" Text="QuantityPerUnit"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtQuantityPerUnit" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblUnitPrice" runat="server" Text="UnitPrice"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtUnitPrice" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblUnitsInStock" runat="server" Text="UnitsInStock"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtUnitsInStock" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <table>
                        <tr>
                            <td>
                                <div>
                                    <asp:Button ID="btnSearch" runat="server" Text="Search" BorderStyle="Solid" OnClick="btnSearch_Click"
                                        ToolTip="Search Product" />
                                </div>
                            </td>
                            <td>
                                <asp:Button ID="btnClear" runat="server" Text="Clear" BorderStyle="Solid" OnClick="btnClear_click"
                                    ToolTip="Clear the values" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div id="gridViewControl" style="border: solid 1px black; width: 100%;">
        <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu ul" EnableViewState="false"
            IncludeStyleBlock="false" Orientation="Horizontal">
            <Items>
                <asp:MenuItem Text="SelectAnAction">
                    <asp:MenuItem Text="ArchiveProduct" Value="SaveProduct"></asp:MenuItem>
                </asp:MenuItem>
            </Items>
        </asp:Menu>
        <asp:GridView ID="gridProduct" runat="server" AllowPaging="True" AlternatingRowStyle-BackColor="ActiveBorder"
            AutoGenerateColumns="False" CssClass="GridViewStyle" GridLines="None">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox runat="server" ID="RowLevelCheckBox" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ProductID" HeaderText="Id" ReadOnly="True" Visible=false />
                <asp:BoundField DataField="ProductName" HeaderText="Product Name" ReadOnly="True" />
                <%--<asp:BoundField  DataField="SupplierID" HeaderText="Supplier ID" 
         ReadOnly="True" />--%>
                <asp:BoundField DataField="CategoryID" HeaderText="Category ID" ReadOnly="True" Visible=false />
                <asp:BoundField DataField="QuantityPerUnit" HeaderText="Quantity" ReadOnly="True" />
                <asp:BoundField DataField="UnitPrice" HeaderText="Unit Price" ReadOnly="True" />
                <asp:BoundField DataField="UnitsInStock" HeaderText="Units In Stock" ReadOnly="True" />
            </Columns>
            <RowStyle CssClass="RowStyle" />
            <EmptyDataRowStyle CssClass="EmptyRowStyle" />
            <PagerStyle CssClass="PagerStyle" />
            <SelectedRowStyle CssClass="SelectedRowStyle" />
            <HeaderStyle CssClass="HeaderStyle" />
            <EditRowStyle CssClass="EditRowStyle" />
            <AlternatingRowStyle CssClass="AltRowStyle" />
        </asp:GridView>
    </div>
</asp:Content>
